package com.example.user;

import cn.hutool.extra.spring.SpringUtil;
//import com.example.user.config.CanalClient;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@Slf4j
@MapperScan("com.example.user.mapper")
@SpringBootApplication
public class UserApplication {

    public static void main(String[] args) throws IOException, InterruptedException {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(UserApplication.class, args);

        log.info("数据同步程序启动");
//        CanalClient canalClient = SpringUtil.getBean(CanalClient.class);
//        canalClient.run();
    }

}
